package com.vates.login.services.impl;

import java.io.Serializable;
import java.util.List;

import com.vates.login.services.BaseCrudServices;

public abstract class BaseCrudServicesImpl<T, PK extends Serializable> 
							 implements BaseCrudServices<T, PK> {
	
	@Override
	public PK save(T entity) {
		return getEntityDao().save(entity);
	}

	@Override
	public void delete(PK entity) {
		getEntityDao().delete(entity);
	}

	@Override
	public T get(PK id) {
		return getEntityDao().get(id);
	}

	@Override
	public List<T> getAll() {
		return getEntityDao().getAll();
	}
	
	@Override
	public boolean exists(PK id) {
		return getEntityDao().exists(id);
	}
	
}
